package com.pcbly.web.persistence.workflow;
 

import com.pcbly.web.bean.workflow.WorkflowCategoryBean; 
import com.pcbly.web.components.utils.random.GUID;
import com.pcbly.web.persistence.HibernateBaseDao;

public class WorkflowCategoryHibernateDao extends
		HibernateBaseDao<WorkflowCategoryBean> implements WorkflowCategoryDao {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8806183395682548395L;
	public WorkflowCategoryHibernateDao(){
		super();
	}
	protected Class<WorkflowCategoryBean> getEntityClass() {
		return WorkflowCategoryBean.class;
	}
	@Override
	public void createWorkflowCategoryBean(WorkflowCategoryBean bean)
			throws Exception {
		// TODO Auto-generated method stub
		bean.setId((new GUID()).toString());
		getHibernateTemplate().save(bean);
	}

}
